package cn.dt.ymcc.feignclient;

import cn.dt.ymcc.result.JSONResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ceshi {
    @Autowired
    private UserFeignClient userFeignClient;

    @GetMapping("/add")
    public JSONResult add(String phone){
        phone = "13330964748";
        JSONResult userByphone = userFeignClient.getUserByphone(phone);
        return userByphone;
    }
}
